<?php

/*
 *	Framework namespace
 */
namespace Nano
{
	/*
	 *	Include kernel
	 */
	require_once FRAMEWORK.DS.'Kernel'.EXT;
	
	/*
	 *	Include autoloader
	 */
	require_once FRAMEWORK.DS.'Autoload'.EXT;
	
	/*
	 *	Add frameworks paths
	 */
	\Autoload::getInstance('framework')->add
	(
		'framework/libraries',
		'framework/helpers'
	);
	
	/*
	 *	That's all!
	 *
	 *	Now you can load only useful
	 *	for you libraries and modules
	 */
}

/*
 *	Application namespace
 */
namespace Application
{
	/*
	 *	Add application paths
	 *
	 *	WARNING! Be carful with paths order!
	 */
	\Autoload::getInstance('application')->add
	(
		'application/interfaces',
		'application/libraries',
		'application/models',
		'application/helpers',
		'application/controllers'
	);
	
	/*
	 *	Run core
	 */
	Core::getInstance();
}